package com.ming.sps.server.services;


import org.apache.commons.lang.StringUtils;

import com.ming.sps.server.dao.Dao;

public class BaseService {
	
	protected Dao dao = new Dao();
	
	/**
	 * 
	 * @param errorMsg 错误提示内容
	 * @param sound 提示声音
	 * @return
	 * @throws Exception
	 */
	protected String retError(String errorMsg,String sound) throws Exception{
		if(StringUtils.isBlank(errorMsg)){
			errorMsg = " ";
		}else if(StringUtils.isBlank(sound)){
			sound = "null";
		}
//		return MingUtil.encrypt("error:"+ errorMsg +"&sound:"+sound);
		return "error:"+ errorMsg +"&sound:"+sound;
	}

}
